<template>
  <div class="cart">
    <div class="main">
      <div class="nav-cart">
        <div><img src="../../public/img/logo/logo.png" alt="" /></div>
        <div class="nav-right">
          <div class="ssk"></div>
          <span class="ss">搜索</span>
        </div>
      </div>
      <!-- 表格 -->
      <div class="table">
        <h2>全部商品:</h2>
        <!-- <div class="cart-box">
          <div class="box-left">
            <input type="checkbox">
            <div><img src="" alt=""></div>
            <p>书名</p>
          </div>
           <div class="box-right"></div>
        </div> -->
        <!-- 购物车表格 -->
        <table>
          <thead>
            <tr>
              <th>全选</th>
              <th>商品图片</th>
              <th>商品名称</th>
              <th>数量</th>
              <th>单价</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td><input type="checkbox"></td>
              <td><img src="../../public/img/gallery/best_selling4.jpg" alt="" srcset=""></td>
              <td>乐舞</td>
              <td>22</td>
              <td>365￥</td>
              <td>删除</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td><img src="../../public/img/gallery/best_selling4.jpg" alt="" srcset=""></td>
              <td>乐舞</td>
              <td>22</td>
              <td>365￥</td>
              <td>删除</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td><img src="../../public/img/gallery/best_selling4.jpg" alt="" srcset=""></td>
              <td>乐舞</td>
              <td>22</td>
              <td>365￥</td>
              <td>删除</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td><img src="../../public/img/gallery/best_selling4.jpg" alt="" srcset=""></td>
              <td>乐舞</td>
              <td>22</td>
              <td>365￥</td>
              <td>删除</td>
            </tr>
          </tbody>
          <tfoot>
            <tr>
              <th colspan="6">合计:____元</th>
            </tr>
          </tfoot>
        </table>
      </div>
      <!-- 结算 -->
      <div class="jiesuan">
        <button @click="goindex">继续购物</button>
        <button>进行结算</button>
      </div>
      <!-- 页脚 -->
      <div class="my-footer">
        <div class="footer-left">
          <div class="logo">
            <img class="logot" src="../../public/img/logo/logo2_footer.png" alt="" />
            <span class="jies">现在获得喘息空间，我们将在另一年延长您的任期。</span>
            <div class="xicon">
              <img src="../../public/img/icon/facebook-fill.png" alt="" />
              <img src="../../public/img/icon/xiangji.png" alt="" />
              <img src="../../public/img/icon/linying.png" alt="" />
              <img src="../../public/img/icon/radio.png" alt="" />
            </div>
          </div>
        </div>
        <div class="footer-center">
          <h2>图书类别</h2>
          <div class="footer-xia">
            <div class="footer-center-left">
              <ul>
                <li><a href="">历史</a></li>
                <li><a href="">自传</a></li>
                <li><a href="">红色血脉</a></li>
              </ul>
            </div>
            <div class="footer-center-center">
              <ul>
                <li><a href="">爱情</a></li>
                <li><a href="">恐怖</a></li>
                <li><a href="">科幻小说</a></li>
              </ul>
            </div>
            <div class="footer-center-reigth">
              <ul>
                <li><a href="">商业</a></li>
                <li><a href="">专业</a></li>
                <li><a href="">星座占星</a></li>
              </ul>
            </div>
          </div>
        </div>
        <div class="footer-reigth">
          <h2>网站地图</h2>
          <div class="footer-reigth-reight">
            <ul>
              <li><a href="">首页</a></li>
              <li><a href="">购物车</a></li>
              <li><a href="">评论</a></li>
            </ul>
          </div>
        </div>
        <p class="p">版权所有&copy;2022保留所有权利book</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goindex() {
      this.$router.push('/')
    }
  },
};
</script>

<style lang="scss" scoped>
.cart {
  background-color: rgb(252, 237, 237);
  // background-color: rgb(252, 237, 237);
  width: 100%;
  height: 100%;

  .main {
    padding-top: 40px;
    width: 1300px;
    // height: 1000px;
    margin: auto;

    // background-color: darkseagreen;
    .nav-cart {

      width: 1300px;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;

      .nav-right {
        width: 250px;
        margin-right: 10px;
        // background-color: coral;
        display: flex;
        // justify-content: space-between;
        align-items: center;

        .ssk {
          width: 180px;
          height: 30px;
          //   background-color: burlywood;
          border: 1px solid gray;
        }

        .ss {
          display: block;
          height: 32px;
          width: 50px;
          background-color: rgb(254, 56, 56);
          line-height: 32px;
          font-size: 17px;
          letter-spacing: 2px;
        }
      }
    }

    .table {
      margin-top: 20px;

      h2 {
        height: 30px;
        width: 150px;
        padding-left: 15px;
        // background-color: aquamarine;
        text-align: left;
        line-height: 30px;
        font-size: 18px;
      }

      table {
        // display: flex;
        margin-left: 20px;
        margin-top: 30px;
        width: 1300px;
        font-size: 20px;

        tr {
          width: 1200px;
          padding: 10px;
          display: flex;
          justify-content: space-between;
        }

        tbody {

          tr {
            border: 2px solid grey;
            display: flex;
            align-items: center;
            margin-top: 10px;
          }

          td {

            img {
              width: 90px;
            }
          }
        }

        tfoot {
          tr {
            display: flex;
            justify-content: right;
            border: 2px solid grey;
          }
        }
      }

      .img1 {}
    }

    // 结算
    .jiesuan {
      width: 400px;
      height: 50px;
      margin-top: 30px;
      margin-left: 20px;
      // background-color: aqua;
      display: flex;
      justify-content: space-between;

      button {
        width: 150px;
        background-color: rgb(255, 60, 60);
        border: none;
        border-radius: 40px;
        color: white;
        font-size: 18px;
        letter-spacing: 2px;
      }
    }

    .my-footer {
      width: 1300px;
      height: 250px;
      // background-color: aquamarine;
      padding-left: 110px;
      margin: auto;
      z-index: 10;
      display: flex;
      padding-top: 280px;
      position: relative;

      .p {
        height: 30px;
        width: 280px;
        position: absolute;
        bottom: 0px;
        font-size: 16px;
        margin-left: 450px;
        // background-color: aqua;
      }

      .logo {
        position: absolute;
        width: 250px;

        .logot {
          margin-right: 210px;
        }
      }

      .jies {
        margin-top: 20px;
        display: block;
        width: 350px;
        // background-color: aquamarine;
        font-size: 18px;
        text-align: left;
      }

      .footer-left {
        width: 30%;
        height: 100%;
        // background-color: blueviolet;

        .xicon {
          width: 100%;
          height: 50px;
          display: flex;
          justify-content: space-between;
          // background-color: azure;
          margin-top: 25px;

          img {
            width: 30px;
            height: 30px;
          }
        }
      }

      .footer-center {
        width: 40%;
        // background-color: cornflowerblue;
        height: 200px;

        h2 {
          text-align: left;
          font-size: 18px;
          font-weight: 600;
        }

        .footer-xia {
          display: flex;
          justify-content: space-between;
          font-size: 18px;
          margin-top: 40px;

          a {
            display: block;
            margin-bottom: 30px;
            text-align: left;
            text-decoration: underline;
          }
        }
      }

      .footer-reigth {
        padding-left: 80px;
        width: 20%;
        // background-color: crimson;
        height: 200px;

        h2 {
          text-align: left;
          font-size: 18px;
          font-weight: 600;
        }

        .footer-reigth-reight {
          margin-top: 40px;

          a {
            display: block;
            margin-bottom: 30px;
            text-align: left;
            text-decoration: underline;
            font-size: 18px;
          }
        }
      }
    }
  }
}
</style>